package com.itheima.dubbo.service;

import com.itheima.dubbo.UserInterface;
import org.apache.dubbo.config.annotation.DubboService;

//dubbo远程调用服务
@DubboService(timeout = 10000)//设置超时时间
public class UserServiceImpl implements UserInterface {
    @Override
    public String yyx(String username) {
        System.out.println("UserServiceImpl执行了。。。。。。。。。。。");
        return "Hello Dubbo username " + username;
    }

    @Override
    public void Hello(int age) {
        System.out.println(" Dubbo服务提供者 注解@DubboService 》》 ");
    }


}
